import Vue from 'vue'
import './plugins/axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/global.css'
import axios from 'axios'
// console.log("main.js:"+sessionStorage.getItem('token'))
// axios.defaults.headers.common['token']=sessionStorage.getItem("token")
//请求头携带cookie
axios.defaults.withCredentials = true;
Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
